{template 'common/header'}
<div class="main">
    <ul class="nav nav-tabs">
        <li {if $_GPC['do'] == 'votelist'}class="active"{/if}><a href="{php echo $this->createWebUrl('votelist');}">管理</a></li>
        <li {if $_GPC['do'] == 'voteresult'}class="active"{/if}><a href="{php echo $this->createWebUrl('voteresult', array('id' => $vote['id']));}">查看结果</a></li>
        <li {if $_GPC['do'] == 'votelog'}class="active"{/if}><a href="{php echo $this->createWebUrl('votelog', array('id' => $vote['id']));}">查看记录</a></li>
    </ul>

    <div class="search">
        <form action="{php echo $this->createWeburl('votelog')}" method="post">
            <table class="table table-bordered tb">
                <tbody>
                <tr class="span6">
                    <th class="span2">选项名称</th>
                    <td class="span2">
                        <input class="span2" name="keyword" id="" type="text" value="{$_GPC['keyword']}">
                    </td>
                    <td class="span2">
                        <button class="btn pull-right span2"><i class="icon-search icon-large"></i> 搜索</button>
                    </td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>

    <div style="padding: 0 15px 0  15px;" style="position:relative">
        <form action="" method="post" onsubmit="">
            <div class="sub-content">
                <table class="table table-hover" style="position:relative">
                    <thead class="navbar-inner">
                    <tr>
                        <th style="width:40px;" class="row-first">选择</th>
                        <th style="width:40px;" class="row-hover">编号</th>
                        <th style="width:70px;">选项编号</th>
                        <th >选项名称</th>
                        <th style="width:250px;">openid</th>
                        <th style="width:120px;">投票时间<i></i></th>
                    </tr>
                    </thead>
                    <tbody>
                    {loop $list $row}
                    <tr>
                        <td class="row-first"><input type="checkbox" name="select[]" value="{$row['id']}" /></td>
                        <td class="row-hover">{$row['id']}</td>
                        <td >{$row['oid']}</td>
                        <td >{$row['option_title']}</td>
                        <td >{$row['from_user']}</td>
                        <td style="font-size:12px; color:#777;">
                            {php echo date('Y-m-d H:i:s', $row[createtime]);}
                        </td>
                    </tr>
                    {/loop}
                    </tbody>
                </table>
                <table class="table">
                    <tr>
                        <td style="width:40px;" class="row-first"><input type="checkbox" onclick="selectall(this, 'select');" /></td>
                        <td>
                            <input type="submit" name="delete" value="删除" class="btn btn-primary" />
                            <input type="hidden" name="token" value="{$_W['token']}" />
                        </td>
                    </tr>
                </table>
            </div>
        </form>
        {$pager}
    </div>

</div>
{template 'common/footer'}